package com.atguigu.educms.service;

import com.atguigu.common.cron.bean.FrontPageBean;
import com.atguigu.educms.entity.CmsComment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 文章评论 服务类
 * </p>
 *
 * @author Panghl
 * @since 2021-03-11
 */
public interface CmsCommentService extends IService<CmsComment> {

    /**
     * 分页获取评论
     * @param pageNo
     * @param pageSize
     * @return
     */
    FrontPageBean getFrontComment(Integer pageNo, Integer pageSize, String contentId);

    /**
     * 提交评论
     * @param cmsComment
     */
    void commitComment(CmsComment cmsComment);
}
